//package com.chen.jifen;
//
//import java.util.concurrent.LinkedBlockingQueue;
//import java.util.concurrent.ThreadPoolExecutor;
//import java.util.concurrent.TimeUnit;
//
//import org.swift.cfg4u.servlet.ConfigController;
//
//import jifen.cmbc.CmbcProcessOrderThread;
//import jifen.cmbc.invoicing.CmbcInvoicingProcessOrderThread;
//import job.JobRun;
//import thread.CardAutoUseThread;
//import thread.CardCancelGoodsBusinessNotifyThread;
//import thread.CardCancelJifenBusinessNotifyThread;
//import thread.CardUsedNotifyThread;
//import thread.ChannelOrderSuccessNotifyThread;
//import thread.ONSSmsConsumerThread;
//import thread.OrderActiveRespThread;
//import thread.OrderAutoDeliveryThread;
//import thread.OrderAutoUseCardThread;
//import thread.OrderCompleteAutoDeliveryThread;
//import thread.OrderConfirmThread;
//import thread.OrderDispatchThread;
//import thread.OrderJifenDeductThread;
//import thread.OrderNoticeUserThread;
//import thread.OrderPreThread;
//import thread.OrderSuccessNotifyThread;
//import thread.PushChannelThread;
//import thread.ReceiveSmsProcessThread;
//import thread.TaobaoEticketSendThread;
//import thread.WeixinSendMessageThread;
//
//public class OrderStart {
//	private static final long serialVersionUID = 4559064637933851735L;
//	static int threads = 100;
//	public static ThreadPoolExecutor pool = new ThreadPoolExecutor(threads, threads + 1, 50000L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>());
//
//	public static void main(String args[]) {
//		try {
//			ConfigController.start();
//
//			//JobRun.run();
//
//			OrderDispatchThread dis = new OrderDispatchThread();
//			pool.execute(dis);
//
//			OrderPreThread smsh = new OrderPreThread();
//			pool.execute(smsh);
//
//			OrderActiveRespThread thread2 = new OrderActiveRespThread();//暂时没有使用到
//			pool.execute(thread2);
//
//			OrderConfirmThread thread3 = new OrderConfirmThread();
//			pool.execute(thread3);
//
//			OrderJifenDeductThread thread4 = new OrderJifenDeductThread();
//			pool.execute(thread4);
//
//			OrderNoticeUserThread thread5 = new OrderNoticeUserThread();
//			pool.execute(thread5);
//
//			ReceiveSmsProcessThread rec = new ReceiveSmsProcessThread();
//			pool.execute(rec);
//			
//			//券使用通知
//			CardUsedNotifyThread cnt = new CardUsedNotifyThread();
//			pool.execute(cnt);
//			//券作废采购商通知
//			CardCancelJifenBusinessNotifyThread ccjbn=new CardCancelJifenBusinessNotifyThread();
//			pool.execute(ccjbn);
//			//券作废供应商通知
//			CardCancelGoodsBusinessNotifyThread ccgbn=new CardCancelGoodsBusinessNotifyThread();
//			pool.execute(ccgbn);
//			
//			TaobaoEticketSendThread taobao = new TaobaoEticketSendThread();
//			pool.execute(taobao);
//			
//			PushChannelThread pt=new PushChannelThread();
//			pool.execute(pt);
//			
//			//订单状态成功通知线程
//			OrderSuccessNotifyThread ost=new OrderSuccessNotifyThread();
//			pool.execute(ost);
//			
//			//民生电商代发货处理线程
//			CmbcProcessOrderThread cpot=new CmbcProcessOrderThread();
//			pool.execute(cpot);
//			
//			//渠道商订单成功通知线程
//			ChannelOrderSuccessNotifyThread cosnt=new ChannelOrderSuccessNotifyThread();
//			pool.execute(cosnt);
//			
//			//微信消息发送线程
//			WeixinSendMessageThread weixinSendMessageThread=new WeixinSendMessageThread();
//			pool.execute(weixinSendMessageThread);
//			
//			//民生进销存虚拟发货
//			CmbcInvoicingProcessOrderThread cmbcInvoicingProcessOrderThread = new CmbcInvoicingProcessOrderThread();
//			pool.execute(cmbcInvoicingProcessOrderThread);
//			
//			//阿里云短信消息队列处理
//			ONSSmsConsumerThread smsConsumerThread  = new ONSSmsConsumerThread();
//			pool.execute(smsConsumerThread);
//			
////			//订单模拟使用券码
////			OrderAutoUseCardThread oauct=new OrderAutoUseCardThread();
////			pool.execute(oauct);
////			//券码供应商侧
////			CardAutoUseThread caut=new CardAutoUseThread();
////			pool.execute(caut);
////			
////			//豹品淘 自动发货
////			OrderAutoDeliveryThread orderAutoDeliveryThread = new OrderAutoDeliveryThread();
////			pool.execute(orderAutoDeliveryThread);
////			OrderCompleteAutoDeliveryThread orderCompleteAutoDeliveryThread = new OrderCompleteAutoDeliveryThread();
////			pool.execute(orderCompleteAutoDeliveryThread);
////			
////			//民生进销存虚拟发货
////			CmbcInvoicingProcessOrderThread cmbcInvoicingProcessOrderThread = new CmbcInvoicingProcessOrderThread();
////			pool.execute(cmbcInvoicingProcessOrderThread);
//			
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
//
//	}
//}
